export default {
  computed: {
    nameIcon() {
      return (data) => {
        let { id, isOutsite, classType } = data
        if (classType == 1) {
          if (id == 1) {
            return 'el-icon-s-home'
          } else {
            switch (isOutsite) {
              case '1':
                return 'el-icon-link'
              case '2':
                return 'el-icon-folder'
              case '3':
                return 'el-icon-cpu'
            }
          }
        } else {
          switch (classType) {
            case '11':
              return 'el-icon-document'
            case '21':
              return 'el-icon-picture-outline'
            case '31':
              return 'el-icon-paperclip'
          }
        }
      }
    },
  },
}
